package com.fortune.dto.in.cOrder;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.List;

public class COrderProductEditDto {
    @ApiModelProperty(example="客户id")
    @NotBlank(message="客户id不能为空")
    private String ClientId;
    @ApiModelProperty(example="商品id")
    @NotBlank(message="商品id不能为空")
    private String productId;
    //销售
    private List<PurchaseGiftDto> sales;
    //赠送
    private List<PurchaseGiftDto> gift;
    @ApiModelProperty(example = "商品总金额")
    private BigDecimal pTotalPrice;
    @ApiModelProperty(example = "押金金额")
    private BigDecimal dTotalPrice;
    @ApiModelProperty(example = "订单id")
    private String ordersId;
    @ApiModelProperty(example = "订单编号")
    private String orderNum;
    public String getClientId() {
        return ClientId;
    }

    public void setClientId(String clientId) {
        ClientId = clientId;
    }

    public String getProductId() {
        return productId;
    }
    public void setProductId(String productId) {
        this.productId = productId;
    }

    public List<PurchaseGiftDto> getSales() {
        return sales;
    }

    public void setSales(List<PurchaseGiftDto> sales) {
        this.sales = sales;
    }

    public List<PurchaseGiftDto> getGift() {
        return gift;
    }

    public void setGift(List<PurchaseGiftDto> gift) {
        this.gift = gift;
    }

    public BigDecimal getpTotalPrice() {
        return pTotalPrice;
    }

    public void setpTotalPrice(BigDecimal pTotalPrice) {
        this.pTotalPrice = pTotalPrice;
    }

    public BigDecimal getdTotalPrice() {
        return dTotalPrice;
    }

    public void setdTotalPrice(BigDecimal dTotalPrice) {
        this.dTotalPrice = dTotalPrice;
    }

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "COrderProductEditDto{" +
                "ClientId='" + ClientId + '\'' +
                ", productId='" + productId + '\'' +
                ", sales=" + sales +
                ", gift=" + gift +
                ", pTotalPrice=" + pTotalPrice +
                ", dTotalPrice=" + dTotalPrice +
                ", ordersId='" + ordersId + '\'' +
                ", orderNum='" + orderNum + '\'' +
                '}';
    }
}
